<template>
  <div class="MyPanel">
    <button @click="test">test</button>
  </div>
</template>

<script setup lang="ts">
function test () {
  alert('test')
}
</script>

<style scoped lang="scss">
.MyPanel{
  button {
    color: red;
  }
}

</style>